var express = require('express');
var router = express.Router();
var dataCtrl = require('../controllers/user.controller')

router.post('/data',dataCtrl.create);
router.post('/data/:id',dataCtrl.update)
router.delete('/data/:id',dataCtrl.remove)
router.post('/list',dataCtrl.list)
router.get('/data/:id',dataCtrl.get)//获取单条用户信息



/* GET users listing. */
router.get('/', function(req, res, next) {
  res.send('respond with a resource');
});

module.exports = router;
